import http from "@/utils/http";
/**
 * 
 * @param {String} id 获取商品详情
 * @returns  商品详情
 */
export const getGoods = (id) => {
    return http({
        url: '/goods',
        data: { id }
    })
}


// /goods/relevant
/**
 * 
 * @param {Object} data  商品id 和 limit数量限制
 * @returns result
 */
export const getGoodsRelevant = (data) => {
    return http({
        url: '/goods/relevant',
        data
    })
}
